/*
package com.infore.exchange.main.consumer;


import com.infore.exchange.main.config.RabbitConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class Consumer {

    @RabbitListener(queues = RabbitConfig.QUEUE_NAME)
    public void listenMessage(Message message)
    {
        System.out.println("接收消息："+new String(message.getBody()));
    }

}
*/
